<?php
class rbacControl extends Control{
	      function __auto(){
		   if(!$this->rbac_is_login()){ //如果没有登录的话
			$this->go("login/index");
		     }

	//if(!$this->rbac_check_access()){
			//if(APP=='admin'&&CONTROL =='index' && METHOD=='index'){
			//$this->go(__ROOT__);
			//}else{
			//	$this->error("没有操作权限");
			//}
	//	}
 
    }
	
	}
    


?>